﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SF.BLL
{
    public partial class bs_rule_config
    {
        private readonly DAL.bs_rule_config dal;

        public bs_rule_config()
        {
            dal = new DAL.bs_rule_config();
        }

        #region 基本方法===============================
        /// <summary>
        /// 是否存在（通过Num来查询）
        /// </summary>
        /// <param name="busnieseNum"></param>
        /// <param name="appNum"></param>
        /// <returns></returns>
        public bool ExistByNum(string busnieseNum, string appNum)
        {
            return dal.ExistByNum(busnieseNum, appNum);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        /// <param name="busnieseNum"></param>
        /// <param name="appNum"></param>
        /// <returns></returns>
        public SF.Model.bs_rule_config GetModel(string busnieseNum, string appNum)
        {
            return dal.GetModel(busnieseNum, appNum);
        }

        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Edit(SF.Model.bs_rule_config model)
        {
            return dal.Edit(model);
        }
        #endregion
    }
}
